:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #8BC34A;
    --text-color: #333333;
    --light-bg: #F5F9F5;
    --card-bg: #ffffff;
    --green-gradient: linear-gradient(135deg, #4CAF50, #2E7D32);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
    overflow-x: hidden;
}

/* 添加自然纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h20v20H0z" fill="%234CAF50" fill-opacity="0.03"/></svg>');
    z-index: -1;
}

/* 导航栏样式 */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 主要内容区域 */
main {
    margin-top: 70px;
}

section {
    padding: 4rem 5%;
}

/* 首页英雄区域 */
.hero {
    background-color: #f8f9fa;
    padding: 0;
    margin-top: 60px;
}

/* Banner 样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-top: 60px;
}

.banner-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    position: relative;
    width: 33.333%;
    height: 100%;
    overflow: hidden;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(46, 125, 50, 0.3),
        rgba(46, 125, 50, 0.5)
    );
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
    width: 80%;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.banner-btn.prev {
    left: 1rem;
}

.banner-btn.next {
    right: 1rem;
}

.banner-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #ffffff;
}

/* 产品展示区域 */
.products {
    background: #ffffff;
    padding: 4rem 5%;
}

.products h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    margin-bottom: 1.5rem;
}

.product-image i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 联系方式区域 */
.contact {
    background: #ffffff;
    padding: 4rem 5%;
}

.contact h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--card-shadow);
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* 页脚样式 */
footer {
    background: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
}

/* 移动端导航栏样式 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 0.8rem;
        display: block;
        width: 100%;
    }

    .nav-links a:hover {
        background: var(--light-bg);
    }

    .banner-container {
        height: 300px;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-container {
        height: 400px;
    }
}

/* 关于我们页面样式 */
.about-section {
    padding: 6rem 5% 4rem;
    background: #ffffff;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-content ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.about-content ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.timeline {
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item .year {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 100px;
}

.timeline-item .event {
    color: var(--text-color);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .about-section {
        padding: 5rem 1rem 3rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-item .year {
        min-width: auto;
    }
} 